package com.cloud.tsp.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloud.api.domain.tsp.QueryVehicle;
import com.cloud.api.domain.tsp.VehicleDto;
import com.cloud.api.domain.tsp.VehicleInformation;
import com.cloud.api.constants.StrVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author haohaibo
 * @since 2023-11-27
 */
//@DS("doris")
public interface VehicleInformationMapper extends BaseMapper<VehicleInformation> {

    IPage<VehicleDto> selectVehicleList(IPage<?> page, @Param("c") QueryVehicle para);

    Long selectVehicleCount();

    List<Integer> selectVehicleCountMonth();

    List<StrVo> selectVinScope( @Param("c") QueryVehicle para);

    //有部门翻译及条件查询
    List<VehicleDto> selectAllVehicleList(@Param("c") QueryVehicle para);

    //没有部门翻译
    List<VehicleInformation> selectAllVehicleList1();

    VehicleDto getById(@Param("id") String Id);
}